package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantPsychologicalCaseWarning;

import java.util.List;
import java.util.Map;


public interface TenantPsychologicalCaseWarningService {
    int deleteByPrimaryKey(Long id);

    int insert(TenantPsychologicalCaseWarning record);

    int insertSelective(TenantPsychologicalCaseWarning record);

    TenantPsychologicalCaseWarning selectByPrimaryKey(Long id);
    TenantPsychologicalCaseWarning selectByPrimaryCounselingId(Long CounselingId);

    int updateByPrimaryKeySelective(TenantPsychologicalCaseWarning record);

    int updateByPrimaryKey(TenantPsychologicalCaseWarning record);

    List<Map<String, Object>> getWarningList(PageInfo pi,Map<String, Object> map);

    long getWarningListCount(Map<String, Object> map);

    Map<String, Object> statWarningStatus(Map<String, Object> map);

    Double getAverageProcessCycle(Map<String, Object> map);
    List<Map<String,Object>> getUserWarning(PageInfo pageInfo,Map<String, Object> map);
    Long getUserWarningCount(Map<String, Object> map);
    Long getAllUserWarningCount(Map<String, Object> map);
}
